package com.yjy.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpSession;

import com.system.common.pojo.SysMenu;
import com.system.common.pojo.SysRole;

public interface SysRoleService {
	public List<SysRole> listAll(Map<?, ?> map);
	public List<SysRole> selectRole(String userId);//根据用户获取角色
	public void delete(String rid);
	public boolean checkName(String roleName);
	public void update(SysRole role);
	public void save(SysRole role);
	public SysRole getById(String roleId);
	public List<Map<String, Object>> clickZtree(String deptId);
	public List<Map<String, Object>> nouserPower();
	public List<Map<String, Object>> yesUserPower(String roleId);
	public String pitchOn(String ids, String checkusers,HttpSession session);
	public String cancel(String ids, String checkusers);
	public List<SysMenu> menuPower(String roleId);
	public void PowerRole(String menus, String roleIds, HttpSession session);
	public List<SysMenu> selectPower(String roleId);
}
